﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<BGCMS.Models.Article>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Birtar greinar
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="leftside">
        <% Html.RenderPartial("AdminLinks"); %>
    </div>
    <div id="content">
        <h2>
            Birtar greinar</h2>
        <table class="tafla">
            <thead>
                <tr>
                    <th>
                        Titill greinar
                    </th>
                    <th>
                    </th>
                </tr>
            </thead>
            <% foreach (var a in Model)
               { %>
            <tr>
                <td>
                    <%: Html.ActionLink(a.Title, "ReviewArticle", new {a.ID}) %>
                </td>
                <td>
                    <a href="#" onclick="approveOrDeny(<%: a.ID %>, 0)">Hafna</a>
                </td>
            </tr>
            <% } %>
        </table>
    </div>
</asp:Content>